<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" close="true">
        <span aria-hidden="true">×</span>
    </button>
    <h4 class="modal-title">
        <span class="fa fa-legal"></span>&nbsp;添加
    </h4>
</div>
<style>


</style>
<div class="modal-body">

    <div class="new-content">
    <form name="add_form" class="form-horizontal layui-form">
        <div class="form-group">
            <label class="col-sm-2 control-label">*名称:</label>
            <div class="col-sm-8">
                <input type="text" class="form-control" name="name" placeholder="名称" value="{$detail.name}">
            </div>
        </div>



        <div class="form-group">
            <label class="col-sm-2 control-label">状态:</label>
            <div class="col-sm-8">
                <select name="status">
                    <option value="1" {if condition="$detail.status eq 1"} selected {/if}>启用</option>
                    <option value="2" {if condition="$detail.status eq 2"} selected {/if}>禁用</option>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">所属类型:</label>
            <div class="col-sm-8">
                <select name="type">
                    <option value="1" {if condition="$detail.type eq 1"} selected {/if}>项目类别</option>
                    <option value="2" {if condition="$detail.type eq 2"} selected {/if}>产业链</option>
                    <option value="3" {if condition="$detail.type eq 3"} selected {/if}>企业类型</option>
                </select>
            </div>
        </div>


        <input type="hidden" name="id" value="{$detail.id}">
    </form>
    </div>

</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default btn-sm" close="true">关闭</button>
    <button type="button" class="btn btn-primary btn-sm" _event="add">保存</button>
</div>
<script>
    layui.use(['form'], function() {
        var form = layui.form
            , layer = layui.layer;
        var layedit = layui.layedit;
        var  tree = layui.tree;
        var util = layui.util;

        layui.form.render('select');
        form.render();
    });
</script>